<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="timo-detail-page">
        <div class="timo-detail-title">详细信息</div>
        <table class="layui-table timo-detail-table">
            <tbody>
            <tr>
                <th width='100px'>用户昵称</th>
                <td th:text="${productOrder.nickName}"></td>
                <th width='100px'>用户头像</th>
                <td>
                    <img th:src="${productOrder.avatar}">
                </td>
            </tr>
            <tr>
                <th:block th:if="${productOrder.prodKinds} eq 2">
                    <th width='100px'>礼品名称</th>
                    <td th:text="${productOrder.productName}"></td>
                    <th width='100px'>礼品图片</th>
                    <td >
                        <img th:src="${prodSub.picUrl}">
                    </td>
                </th:block>
                <th:block th:if="${productOrder.prodKinds} ne 2">




                <th width='100px'>礼品名称</th>
                <td th:text="${productOrder.productName}"></td>
                <th width='100px'>礼品图片</th>
                <td >
                    <img th:src="${productOrder.prodImage}">
                </td>
                </th:block>
            </tr>
            <tr>
                <th width='100px'>礼品类型</th>
                <td th:text="${productOrder.strProdKinds}"></td>
                <th width='100px'>机构名称</th>
                <td th:text="${productOrder.companyName}"></td>
            </tr>
            <tr>
                <th width='100px'>订单编号</th>
                <td th:text="${productOrder.orderCode}"></td>
                <th width='100px'>订单状态</th>
                <td th:text="${productOrder.status}"></td>
            </tr>
            <tr>
                <th width='100px'>礼品美颜值</th>
                <td th:text="${productOrder.points}"></td>
                <th width='100px'>礼品消耗美颜值</th>
                <td th:text="${productOrder.totalPoints}"></td>

            </tr>

            <tr>
                <th width='100px'>礼品数量</th>
                <td th:text="${productOrder.num}"></td>
                <th width='100px'>收货人姓名</th>
                <td th:text="${productOrder.contact}"></td>
            </tr>
            <tr>
                <th width='100px'>收货地址</th>
                <td th:text="${productOrder.address}"></td>
                <th width='100px'>收货人电话</th>
                <td th:text="${productOrder.mobile}"></td>
            </tr>
            <tr>
                <th width='100px'>物流公司</th>
                <td th:text="${productOrder.expressCompany}"></td>
                <th width='100px'>物流单号</th>
                <td th:text="${productOrder.expressCode}"></td>
            </tr>
            <th:block th:if="${productOrder.tradeType == 1 || productOrder.tradeType == 2 }">
                <tr>
                    <th width='100px'>下单时间</th>
                    <td th:text="${#dates.format(productOrder.createTime, 'yyyy-MM-dd HH:mm:ss')}"></td>
                    <th   width='100px'>礼品花费金额</th>
                    <td   th:text="${productOrder.money}"></td>
                </tr>
            </th:block>

            <th:block th:if="${productOrder.tradeType == 0}">
                <tr>
                    <th  colspan="2" width='100px'>下单时间</th>
                    <td colspan="2" th:text="${#dates.format(productOrder.createTime, 'yyyy-MM-dd HH:mm:ss')}"></td>
                </tr>
            </th:block>
            </tbody>
        </table>

        <!--<div th:replace="/common/fragment :: log(${productOrder})"></div>-->
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>